#include <iostream>
using namespace std;
#include <iomanip>
using std::setw;
#include <cmath>
#include <cstdlib>

int sum_obb_and_even();

int main()
{
	sum_obb_and_even();
}


int sum_obb_and_even()
{
	int s_obb=0,s_even=0;
	int a;
	for(int i=0;;i++)
	{
		cin >> a;
		if (a==0) break;
		if (a%2==0) s_even=s_even+a;
		if (a%2==1) s_obb=s_obb+a;
	}
	cout << "sum_even = : " << s_even <<"\n";
	cout << "sum_obb = : " << s_obb<< "\n";
}
